//
// Created by cheng on 2021/03/29.
//

#include <iostream>
#include <queue>

using namespace std;

int main () {
    priority_queue<int> pq;
    int arr[5] = {4, 1, 3, 2, 16};
    for (auto item : arr) {
        pq.push(item);
    }
    while (!pq.empty()) {
        cout << pq.top() << " ";
        pq.pop();
    }
}